﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client
{
    class ValidationException : ApplicationException
    {
        public TextBox BadTextBox { get; private set; }

        public ValidationException(TextBox textbox)
            : base("incorrect text box")
        {
            BadTextBox = textbox;
        }

        public ValidationException(TextBox textbox, string message)
            : base(message)
        {
            BadTextBox = textbox;
        }

        public ValidationException(TextBox textbox, string message, Exception inner)
            : base(message, inner)
        {
            BadTextBox = textbox;
        }
    }
}
